home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / B-C / BBEdit 3.0 Extension Dev.sit / BBEdit 3.0 Extension Dev. Kit / Examples / BB ROT13.c < prev    next >
MacBinary  |  1994-10-09  |  1.4 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Oct 9 22:50:37 1994, modified Sun Oct 9 22:50:37 1994, creator Think C, type ASCII, 891 bytes "BB ROT13.c" , at 0x3fb 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 42 42 20 52 4f 54 | 31 33 2e 63 00 00 00 00 |..BB ROT|13.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 7b 00 | 00 01 7e aa be 5c 7d aa |......{.|..~..\}.|
|00000060| be 5c 7d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.\}.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b3 1e 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 54 79 70 65 73 2e |#include| <Types.|
|00000090| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 57 69 6e |h>.#incl|ude <Win|
|000000a0| 64 6f 77 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |dows.h>.|#include|
|000000b0| 20 3c 44 69 61 6c 6f 67 | 73 2e 68 3e 0d 23 69 6e | <Dialog|s.h>.#in|
|000000c0| 63 6c 75 64 65 20 3c 53 | 6f 75 6e 64 2e 68 3e 0d |clude <S|ound.h>.|
|000000d0| 23 69 6e 63 6c 75 64 65 | 20 3c 53 74 61 6e 64 61 |#include| <Standa|
|000000e0| 72 64 46 69 6c 65 2e 68 | 3e 0d 0d 23 69 6e 63 6c |rdFile.h|>..#incl|
|000000f0| 75 64 65 20 22 45 78 74 | 65 72 6e 61 6c 49 6e 74 |ude "Ext|ernalInt|
|00000100| 65 72 66 61 63 65 2e 68 | 22 0d 0d 70 61 73 63 61 |erface.h|"..pasca|
|00000110| 6c 20 76 6f 69 64 20 6d | 61 69 6e 20 28 45 78 74 |l void m|ain (Ext|
|00000120| 65 72 6e 61 6c 43 61 6c | 6c 62 61 63 6b 42 6c 6f |ernalCal|lbackBlo|
|00000130| 63 6b 20 2a 63 62 62 2c | 20 57 69 6e 64 6f 77 50 |ck *cbb,| WindowP|
|00000140| 65 65 6b 20 77 29 0d 7b | 0d 09 69 66 20 28 63 62 |eek w).{|..if (cb|
|00000150| 62 2d 3e 76 65 72 73 69 | 6f 6e 20 3c 20 32 29 0d |b->versi|on < 2).|
|00000160| 09 09 53 79 73 42 65 65 | 70 28 31 30 29 3b 0d 09 |..SysBee|p(10);..|
|00000170| 65 6c 73 65 20 69 66 20 | 28 21 77 20 26 26 20 77 |else if |(!w && w|
|00000180| 2d 3e 77 69 6e 64 6f 77 | 4b 69 6e 64 20 21 3d 20 |->window|Kind != |
|00000190| 75 73 65 72 4b 69 6e 64 | 29 0d 09 09 53 79 73 42 |userKind|)...SysB|
|000001a0| 65 65 70 28 31 30 29 3b | 0d 09 65 6c 73 65 0d 09 |eep(10);|..else..|
|000001b0| 7b 0d 09 09 6c 6f 6e 67 | 20 73 65 6c 53 74 61 72 |{...long| selStar|
|000001c0| 74 2c 20 73 65 6c 45 6e | 64 2c 20 66 69 72 73 74 |t, selEn|d, first|
|000001d0| 43 68 61 72 3b 0d 0d 09 | 09 63 62 62 2d 3e 47 65 |Char;...|.cbb->Ge|
|000001e0| 74 53 65 6c 65 63 74 69 | 6f 6e 20 28 26 73 65 6c |tSelecti|on (&sel|
|000001f0| 53 74 61 72 74 2c 26 73 | 65 6c 45 6e 64 2c 26 66 |Start,&s|elEnd,&f|
|00000200| 69 72 73 74 43 68 61 72 | 29 3b 0d 0d 09 09 69 66 |irstChar|);....if|
|00000210| 20 28 73 65 6c 53 74 61 | 72 74 20 3d 3d 20 73 65 | (selSta|rt == se|
|00000220| 6c 45 6e 64 29 0d 09 09 | 09 53 79 73 42 65 65 70 |lEnd)...|.SysBeep|
|00000230| 28 31 30 29 3b 0d 09 09 | 65 6c 73 65 0d 09 09 7b |(10);...|else...{|
|00000240| 0d 09 09 09 48 61 6e 64 | 6c 65 20 74 65 78 74 20 |....Hand|le text |
|00000250| 3d 20 63 62 62 2d 3e 47 | 65 74 57 69 6e 64 6f 77 |= cbb->G|etWindow|
|00000260| 43 6f 6e 74 65 6e 74 73 | 20 28 28 57 69 6e 64 6f |Contents| ((Windo|
|00000270| 77 50 74 72 29 20 77 29 | 3b 0d 09 09 09 63 68 61 |wPtr) w)|;....cha|
|00000280| 72 20 2a 73 63 61 6e 20 | 3d 20 2a 74 65 78 74 20 |r *scan |= *text |
|00000290| 2b 20 73 65 6c 53 74 61 | 72 74 2c 20 2a 74 6f 70 |+ selSta|rt, *top|
|000002a0| 20 3d 20 2a 74 65 78 74 | 20 2b 20 73 65 6c 45 6e | = *text| + selEn|
|000002b0| 64 3b 0d 0d 09 09 09 77 | 68 69 6c 65 20 28 73 63 |d;.....w|hile (sc|
|000002c0| 61 6e 20 3c 20 74 6f 70 | 29 0d 09 09 09 7b 0d 09 |an < top|)....{..|
|000002d0| 09 09 09 69 66 20 28 09 | 28 2a 73 63 61 6e 20 3e |...if (.|(*scan >|
|000002e0| 3d 20 27 41 27 20 26 26 | 20 2a 73 63 61 6e 20 3c |= 'A' &&| *scan <|
|000002f0| 3d 20 27 4d 27 29 09 09 | 7c 7c 0d 09 09 09 09 09 |= 'M')..|||......|
|00000300| 09 28 2a 73 63 61 6e 20 | 3e 3d 20 27 61 27 20 26 |.(*scan |>= 'a' &|
|00000310| 26 20 2a 73 63 61 6e 20 | 3c 3d 20 27 6d 27 29 09 |& *scan |<= 'm').|
|00000320| 09 29 0d 09 09 09 09 7b | 0d 09 09 09 09 09 2a 73 |.).....{|......*s|
|00000330| 63 61 6e 20 2b 3d 20 31 | 33 3b 0d 09 09 09 09 7d |can += 1|3;.....}|
|00000340| 0d 09 09 09 09 65 6c 73 | 65 20 69 66 20 28 09 28 |.....els|e if (.(|
|00000350| 2a 73 63 61 6e 20 3e 3d | 20 27 6e 27 20 26 26 20 |*scan >=| 'n' && |
|00000360| 2a 73 63 61 6e 20 3c 3d | 20 27 7a 27 29 09 7c 7c |*scan <=| 'z').|||
|00000370| 0d 09 09 09 09 09 09 09 | 28 2a 73 63 61 6e 20 3e |........|(*scan >|
|00000380| 3d 20 27 4e 27 20 26 26 | 20 2a 73 63 61 6e 20 3c |= 'N' &&| *scan <|
|00000390| 3d 20 27 5a 27 29 09 29 | 0d 09 09 09 09 7b 0d 09 |= 'Z').)|.....{..|
|000003a0| 09 09 09 09 2a 73 63 61 | 6e 20 2d 3d 20 31 33 3b |....*sca|n -= 13;|
|000003b0| 0d 09 09 09 09 7d 0d 09 | 09 09 09 2b 2b 73 63 61 |.....}..|...++sca|
|000003c0| 6e 3b 0d 09 09 09 7d 0d | 0d 09 09 09 63 62 62 2d |n;....}.|....cbb-|
|000003d0| 3e 43 6f 6e 74 65 6e 74 | 73 43 68 61 6e 67 65 64 |>Content|sChanged|
|000003e0| 20 28 28 57 69 6e 64 6f | 77 50 74 72 29 20 77 29 | ((Windo|wPtr) w)|
|000003f0| 3b 0d 09 09 7d 0d 09 7d | 0d 7d 0d 00 00 00 00 00 |;...}..}|.}......|
|00000400| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000410| 76 65 72 73 69 6f 6e 20 | 3e 3d 20 32 29 0d 09 7b |version |>= 2)..{|
|00000420| 0d 09 09 57 69 6e 64 6f | 77 50 65 65 6b 20 73 63 |...Windo|wPeek sc|
|00000430| 0a 42 42 20 52 4f 54 31 | 33 2e 63 00 02 00 00 00 |.BB ROT1|3.c.....|
|00000440| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00000450| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 aa cb 2d b4 00 00 | 00 00 00 00 01 7e 63 61 |....-...|.....~ca|
|00000480| 6e 2d 3e 77 69 6e 64 6f | 77 4b 69 6e 64 20 3d 3d |n->windo|wKind ==|
|00000490| 20 75 73 65 72 4b 69 6e | 64 29 0d 09 09 09 7b 0d | userKin|d)....{.|
|000004a0| 09 09 09 09 44 65 62 75 | 67 53 74 72 28 2a 28 73 |....Debu|gStr(*(s|
|000004b0| 63 61 6e 2d 3e 0d 09 09 | 09 7d 0d 09 09 09 73 63 |can->...|.}....sc|
|000004c0| 61 6e 20 3d 20 73 63 61 | 6e 2d 3e 6e 65 78 74 57 |an = sca|n->nextW|
|000004d0| 69 6e 64 6f 77 3b 0d 09 | 09 7d 0d 09 7d 0d 7d 2d |indow;..|.}..}.}-|
|000004e0| 6e 9f 5f 57 94 15 4e ad | 04 e2 26 40 20 0b 58 8f |n._W..N.|..&@ .X.|
|000004f0| 12 66 96 20 2e 5b 12 4c | ee 18 c0 14 ff d8 4e 5e |.f. .[.L|......N^|
|00000500| 00 00 00 48 00 09 50 72 | 6f 46 6f 6e 74 00 00 00 |...H..Pr|oFont...|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 06 | 00 04 00 2e 00 44 01 95 |........|.....D..|
|00000530| 02 3e 00 2e 00 44 01 95 | 02 3e aa be 16 2d 00 00 |.>...D..|.>...-..|
|00000540| 00 62 00 00 00 62 00 00 | 00 00 01 00 00 00 01 00 |.b...b..|........|
|00000550| 00 00 01 4c 00 00 00 4c | 00 00 00 32 01 1c 19 28 |...L...L|...2...(|
|00000560| 0c 7e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.~.....2|..MPSR..|
|00000570| 00 0a 03 ed ff ff 00 00 | 00 00 01 1c 17 d4 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+